----------------------------------------------
sql:
---------------------------------------------
INSERT INTO `bs`.`v9_module` (`module`, `name`, `url`, `iscore`, `version`, `description`, `setting`, `listorder`, `disabled`, `installdate`, `updatedate`) VALUES ('jx', '驾校模块', '/jx', '1', '1.0', '驾校模块', '', '0', '0', '2013-07-20', '2013-07-20');

INSERT INTO `bs`.`v9_menu` (`id`, `name`, `parentid`, `m`, `c`, `a`, `data`, `listorder`, `display`, `project1`, `project2`, `project3`, `project4`, `project5`) VALUES (NULL, 'jx', '2', 'jx', 'jx', '', '', '1', '1', '1', '1', '1', '1', '1');

select  @p_id:=@@identity;

INSERT INTO `bs`.`v9_menu` (`id`, `name`, `parentid`, `m`, `c`, `a`, `data`, `listorder`, `display`, `project1`, `project2`, `project3`, `project4`, `project5`) VALUES (NULL, 'jx_setting', @p_id, 'jx', 'jx', 'setting', '', '1', '1', '1', '1', '1', '1', '1');

INSERT INTO `bs`.`v9_menu` (`id`, `name`, `parentid`, `m`, `c`, `a`, `data`, `listorder`, `display`, `project1`, `project2`, `project3`, `project4`, `project5`) VALUES (NULL, 'jx_model', @p_id, 'jx', 'jx_model', 'init', '', '2', '1', '1', '1', '1', '1', '1');

UPDATE  `bs`.`v9_menu` SET  `listorder` =  '2' WHERE  `v9_menu`.`id` =29;
------------------------
INSERT INTO `bs`.`v9_menu` (`id`, `name`, `parentid`, `m`, `c`, `a`, `data`, `listorder`, `display`, `project1`, `project2`, `project3`, `project4`, `project5`) VALUES (NULL, 'jiaxiao', 1669, 'jx', 'jiaxiao', 'init', '', '3', '1', '1', '1', '1', '1', '1');


----------------------------------
CREATE TABLE IF NOT EXISTS `v9_member_jiaxiao` (
  `userid` mediumint(8) unsigned NOT NULL,
  UNIQUE KEY `userid` (`userid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
INSERT INTO `v9_model` VALUES(NULL, 1, '驾校会员', '驾校会员', 'member_jiaxiao', '', 0, 0, 1, 0, '', '', '', '', '', '', '', '', 0, 2);

CREATE TABLE IF NOT EXISTS `v9_member_jiaolian` (
  `userid` mediumint(8) unsigned NOT NULL,
  UNIQUE KEY `userid` (`userid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
INSERT INTO `v9_model` VALUES(NULL, 1, '教练会员', '教练会员', 'member_jiaolian', '', 0, 0, 1, 0, '', '', '', '', '', '', '', '', 0, 2);

INSERT INTO `bs`.`v9_menu` (`id`, `name`, `parentid`, `m`, `c`, `a`, `data`, `listorder`, `display`, `project1`, `project2`, `project3`, `project4`, `project5`) VALUES (NULL, 'jx_category_manage', 1669, 'jx', 'category', 'init', '', '2', '1', '1', '1', '1', '1', '1');


INSERT INTO `bs`.`v9_member_menu` (`id`, `name`, `parentid`, `m`, `c`, `a`, `data`, `listorder`, `display`, `isurl`, `url`) VALUES (NULL, 'business', '0', 'jx', 'business', 'init', '', '0', '1', '0', '');

-------------------------------------
code:
-------------------------------------
	if (!module_exists(ROUTE_M)) showmessage(L('module_not_exists'));

  <div class="bk10"></div>
  {if $allow_comment && module_exists('comment')}
  <iframe src="{APP_PATH}index.php?m=comment&c=index&a=init&commentid={id_encode("content_$catid",$id,$siteid)}&iframe=1" width="100%" height="100%" id="comment_iframe" frameborder="0" scrolling="no"></iframe>
  <div class="box">
			<h5>评论排行</h5>
			 {pc:comment action="bang" siteid="$siteid" cache="3600"}
			<ul class="content list blue f14 row-2">
			{loop $data $r}
				<li>·<a href="{$r[url]}" target="_blank">{str_cut($r[title], 40)}</a><span>({$r[total]})</span></li>
				{/loop}
			</ul>
			{/pc}
	</div>
	{/if}
</div>

  <tr>
	<th width="200"><strong><?php echo L('is_pay')?></strong>：</th>
	<td>
		<input type='radio' name='setting[isbusiness]' value='1' <?php if ($setting['isbusiness']) {?>checked<?php }?>> <?php echo L('yes')?>&nbsp;&nbsp;&nbsp;&nbsp;
		<input type='radio' name='setting[isbusiness]' value='0' <?php if (!$setting['isbusiness']) {?>checked<?php }?>>  <?php echo L('no')?>
	</td>
  </tr>


	function load_file_list(id) {
		if (id=='') return false;
		$.getJSON('?m=admin&c=category&a=public_tpl_file_list&style='+id+'&module=jx&templates=model|list|show&name=info&pc_hash='+pc_hash, function(data){$('#model_template').html(data.model_template);$('#list_template').html(data.list_template);$('#show_template').html(data.show_template);});
	}
default--jx--model--name="info[model_template]" id="model_template"--model

	window.top.art.dialog({content:name, fixed:true, style:'confirm', id:'model_delete'},
	function(){
	$.get('?m=jx&c=jx_model&a=delete&modelid='+id+'&pc_hash='+pc_hash,function(data){
				if(data) {
					$(obj).parent().parent().fadeOut("slow");
				}
			})
		 },
	function(){});

<a href='?m=jx&c=jx_model&a=import&menuid=<?php echo $_GET['menuid']?>&pc_hash=<?php echo $_SESSION['pc_hash']?>' ><em><?php echo L('import_model')?></em></a><span>|</span>

<input type="button" class="button" name="exporttypes" value="<?php echo L('import_category')?>"  onclick="cexport('<?php echo $modelid?>', '<?php echo L('import').$m['name'].L('yp_category')?>')"/>

--------------------
$LANG['jx'] = '驾校模块';
$LANG['jx_setting'] = '模块配置';
$LANG['jx_model'] = '模块管理';
$LANG['jiaxiao'] = '驾校管理';
$LANG['jx_category_manage'] = '栏目管理';

http://jingyan.baidu.com/article/d3b74d648681461f76e6097b.html